package com.eastfair.home.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eastfair.boot.request.PageParams;
import com.eastfair.core.base.R;
import com.eastfair.venueservice.dto.ServiceBorrowReturnDTO;
import com.eastfair.venueservice.vo.ServiceBorrowReturnVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 服务借还服务.
 *
 * @author dqq
 * @date 2022 /9/20
 */
public interface HomeServiceBorrowReturnService {

    /**
     * 分页查询借还记录VO列表.
     *
     * @param pageParams the page params
     * @return the r
     */
    Page<ServiceBorrowReturnVO> queryServiceBorrowReturn(PageParams<ServiceBorrowReturnDTO> pageParams);

    /**
     * ID获取借还记录.
     *
     * @param id the id
     * @return the by id
     */
    ServiceBorrowReturnVO getById(Long id);

    /**
     * 借用服务.
     *
     * @param serviceBorrowReturnDTO the service borrow return dto
     * @return the r
     */
    boolean borrow(ServiceBorrowReturnDTO serviceBorrowReturnDTO);

    /**
     * 归还服务.
     *
     * @param serviceBorrowReturnDTO the service borrow return dto
     * @return the r
     */
    boolean returnService(ServiceBorrowReturnDTO serviceBorrowReturnDTO);
}